package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSgazhtjgysMapper;
import com.ruoyi.gcgl.domain.GcProjectSgazhtjgys;
import com.ruoyi.gcgl.service.IGcProjectSgazhtjgysService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工安装合同竣工验收Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-11
 */
@Service
public class GcProjectSgazhtjgysServiceImpl implements IGcProjectSgazhtjgysService 
{
    @Autowired
    private GcProjectSgazhtjgysMapper gcProjectSgazhtjgysMapper;

    /**
     * 查询施工安装合同竣工验收
     * 
     * @param id 施工安装合同竣工验收主键
     * @return 施工安装合同竣工验收
     */
    @Override
    public GcProjectSgazhtjgys selectGcProjectSgazhtjgysById(Long id)
    {
        return gcProjectSgazhtjgysMapper.selectGcProjectSgazhtjgysById(id);
    }

    /**
     * 查询施工安装合同竣工验收列表
     * 
     * @param gcProjectSgazhtjgys 施工安装合同竣工验收
     * @return 施工安装合同竣工验收
     */
    @Override
    public List<GcProjectSgazhtjgys> selectGcProjectSgazhtjgysList(GcProjectSgazhtjgys gcProjectSgazhtjgys)
    {
        return gcProjectSgazhtjgysMapper.selectGcProjectSgazhtjgysList(gcProjectSgazhtjgys);
    }

    /**
     * 新增施工安装合同竣工验收
     * 
     * @param gcProjectSgazhtjgys 施工安装合同竣工验收
     * @return 结果
     */
    @Override
    public int insertGcProjectSgazhtjgys(GcProjectSgazhtjgys gcProjectSgazhtjgys)
    {
        return gcProjectSgazhtjgysMapper.insertGcProjectSgazhtjgys(gcProjectSgazhtjgys);
    }

    /**
     * 修改施工安装合同竣工验收
     * 
     * @param gcProjectSgazhtjgys 施工安装合同竣工验收
     * @return 结果
     */
    @Override
    public int updateGcProjectSgazhtjgys(GcProjectSgazhtjgys gcProjectSgazhtjgys)
    {
        return gcProjectSgazhtjgysMapper.updateGcProjectSgazhtjgys(gcProjectSgazhtjgys);
    }

    /**
     * 批量删除施工安装合同竣工验收
     * 
     * @param ids 需要删除的施工安装合同竣工验收主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtjgysByIds(String ids)
    {
        return gcProjectSgazhtjgysMapper.deleteGcProjectSgazhtjgysByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工安装合同竣工验收信息
     * 
     * @param id 施工安装合同竣工验收主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtjgysById(Long id)
    {
        return gcProjectSgazhtjgysMapper.deleteGcProjectSgazhtjgysById(id);
    }
}
